
package ConversorTemperatura;


public class ConversorKelvin {
    private double celsius;
    private double kelvin;
    private double fahrenheit;

    public ConversorKelvin(){
        
    }
    
    public double converteCelsius(){
        kelvin = celsius + 273.15;
        return kelvin;
    }
    
    public double converteFahrenheit(){
        celsius = (fahrenheit - 32) / 1.8;
        kelvin = celsius + 273.15;
        return kelvin;
    }
    
    /**
     * @return the celsius
     */
    public double getCelsius() {
        return celsius;
    }

    /**
     * @param celsius the celsius to set
     */
    public void setCelsius(double celsius) {
        this.celsius = celsius;
    }

    /**
     * @return the kelvin
     */
    public double getKelvin() {
        return kelvin;
    }

    /**
     * @param kelvin the kelvin to set
     */
    public void setKelvin(double kelvin) {
        this.kelvin = kelvin;
    }

    /**
     * @return the fahrenheit
     */
    public double getFahrenheit() {
        return fahrenheit;
    }

    /**
     * @param fahrenheit the fahrenheit to set
     */
    public void setFahrenheit(double fahrenheit) {
        this.fahrenheit = fahrenheit;
    }
}
